div.taskView(data-forid=pId)
    ul.properties
        li(data-property='phase').special
            h3 Fase:
            p.phase-select(data-current=pPhase)
                each phase_label, phase in allPhases
                    if phase == pPhase
                        a(href='#', data-phase=phase, title="first tooltip").selected= phase_label
                    else
                        a(href='#', data-phase=phase, title="second tooltip")= phase_label
        li(data-property='title').editable
            h3 Tittel:
            p#title.title.editable= pTitle
        li(data-property='desc').editable
            h3 Beskrivelse:
            p.desc.editable= pDesc
        li(data-property='customer').advanced.editable
            h3 Oppdragsgiver:
            p.editable= pCustomer
        li(data-property='ecoframe').advanced.editable
            h3 Økonomisk ramme:
            p.editable= ecoframe
        li(data-property='internId').advanced.editable
            h3 Intern prosjekt id:
            p.editable= pInternId
        li(data-property='dateCreated').advanced
            h3 Start:
            p.editable
                input(type='text', value=pDateCreated, data-property='dateCreated').datepick
        li(data-property='dateEnd').advanced
            h3 Slutt:
            p.editable
                input(type='text', value=pDateEnd, data-property='dateEnd').datepick
            //h3 Slutt:
            //p.editable
            //    input(type='text', value=pDateCreated).datepick
        li(data-property='leader').advanced.editable.selectuser
            h3 Prosjektleder:
            p.editable= pLeader
        li(data-property='resources').advanced.addable
            h3 Ressurser:
            p.resources.editable
                each resource in pResources
                    a(href='#', data-id=resource.id.toString()).resource= resource.name
        li(data-property='risk').advanced
            h3 Risiko:
            .btn-group
                    a.btn.btn-info.dropdown-toggle(data-toggle='dropdown', href='#')= pRisk
                        span.caret
                    ul.dropdown-menu
                        li
                            a(href='#') Lav
                            a(href='#') Middels
                            a(href='#') Høy
            // button.changerisk Endre Risikoz
    hr
    if pRiskChanges.length > 0
        h2 Risiko endringer
        ul.riskChanges
            each riskChange in pRiskChanges
                - var time = new Date(riskChange.time)
                li
                    span.risk-level= riskChange.risk
                    span.msg= riskChange.msg
                    span.meta at #{time.toDateString()} by #{riskChange.by}